package pl.koszolko.documentclustering.dao;

import pl.koszolko.documentclustering.cluster.TextVector;

public class DocumentAbstractVector extends Document {
	private static final long serialVersionUID = 1L;
	private TextVector abstractTextVector;

	public void setAbstractTextVector(TextVector abstractTextVector) {
		this.abstractTextVector = abstractTextVector;
	}

	public TextVector getAbstractTextVector() {
		return abstractTextVector;
	}
	
	public Double countDistance(Document doc) {
		return abstractTextVector.countSimilarity(((DocumentAbstractVector) doc).getAbstractTextVector());
	}
}
